//
//  CBCReadDef.h
//  CBCReaderSDK
//
//  Created by 李雷川 on 2018/1/25.
//  Copyright © 2018年 李雷川. All rights reserved.
//
#ifndef CBCReadDef_h
#define CBCReadDef_h

#define CBCiPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? (CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) || CGSizeEqualToSize(CGSizeMake(828, 1792), [[UIScreen mainScreen] currentMode].size) ||  CGSizeEqualToSize(CGSizeMake(1242, 2688), [[UIScreen mainScreen] currentMode].size)) : NO)

#define MinFontSize 11.0f
#define MaxFontSize 20.0f
#define MenuPadding 30


#define CBCNoteNotification @"CBCNoteNotification"
#define CBCThemeNotification @"CBCThemeNotification"
#define CBCEditingNotification @"CBCEditingNotification"
#define CBCEndEditNotification @"CBCEndEditNotification"
#define ReadOpenNotFirst @"ReadOpenNotFirst"

#define KAnimateTime  0.25f
#define TopSpacing (CBCiPhoneX?70:45)
#define BottomSpacing (CBCiPhoneX?55:30)
#define LeftSpacing 20.0f
#define RightSpacing  20.0f
#define ReadOpenNotFirst @"ReadOpenNotFirst"
#define kDebugMode  @"DebugMode"


@protocol CBCReaderDelegate<NSObject>
-(void)didTapShare;
-(void)didFinishReading;
-(void)addCurrentBookToBookShelf;
@end


@protocol CBCReaderDataSource<NSObject>
-(BOOL)isBookInBookShelf;
@end

#endif /* CBCReadDef_h */


